<%@ page import="com.dzxcqmxm.Dao.XtDao" %>
<%@ page import="com.dzxcqmxm.Dao.impl.XtDaoImpl" %>
<%@ page import="com.dzxcqmxm.JB.Xt" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: Payboi
  Date: 2022/6/3
  Time: 14:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        .menu{
            border: #9dfce9  solid;
            background-color: #9dfce9;
            width: 160px;
            height: 600px;
            bottom: 0;
            float: left;
        }
        .logo{
            width: 160px;
            height: 120px;
        }
        ul{
            border: #7FFFD4 1px solid;
            list-style: none;
            float: left;
            width: 98%;
        }

        li{
            margin: 50px;
        }
        .album{
            float:left;
            width: 102px;
            /*设置文本居中就对了！！*/
            text-align:center;
        }
        .xtxc{
            background-color: #80F6DE;
            list-style: none;
            width: 90px;
            height: 50px;
            margin-left: 0;
            line-height: 10px;
            padding-top: 40px;
            padding-left: 70px;


        }
        .tr{
            line-height: 0px;
            margin-left: 50px;

        }
    </style>
</head>
<body>
<div class="menu">
    <div class="logotop">
        <img class="logo" src="../img/logo.jpg">
    </div>
<%--怎么说，这里展示的系统相册应该是我查询出来的结果，是的，--%>
    <%--准备展示相册--%>
    <%
        XtDao xtDao = new XtDaoImpl();

        ArrayList<Xt> xtArrayList = new ArrayList<Xt>();

        try {
            xtArrayList=xtDao.findAllXt();
            System.out.println("相册分类页面的xtArrayList"+xtArrayList);
        } catch (Exception e) {
            e.printStackTrace();
        }
        /**
         * 之前测试了那么多的jsp页面携带参数，原来只是因为我格式不对
         */
        if(xtArrayList!=null&&xtArrayList.size()>0) {
            for (Xt xt : xtArrayList) {
                out.println("<div class=\"xtxc\"><tr><td><a target=\"yhContent\" href='/dzxc/findAlbumByUserNameAndXTXCNameServlet?XTXCName2="+xt.getXTXCName()+ "'>" +
                        xt.getXTXCName() +
                        "</a></td></tr></div>");
            }
        }

        %>
</div>
</body>
</html>
